<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page contentType="text/html; charset=utf-8"  import="com.leexuan.ordersystem.beans.*" import="com.leexuan.ordersystem.db.*" import="java.util.*"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="css/admincp.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="script/common.js"></SCRIPT>

<SCRIPT src="script/iframe.js" type=text/javascript></SCRIPT>


<html:base/></HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>产品管理&nbsp;>>&nbsp;增加新产品</TD></TR></TBODY></TABLE><BR>
<html:form action="/addProduct.do" method="post">
      <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>

<%

SortDB db = new SortDB();
db.getConnection();

ArrayList arraylist =new ArrayList();
arraylist = db.getSorts();

Sort[] sorts  = new Sort[arraylist.size()];
arraylist.toArray(sorts);
db.closeConnection();
%>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>增加新产品</TD></TR>
        <TR>
          <TD class=altbg1>产品编号：</TD>
          <TD class=altbg2 align=right><html:text property="number" size="15"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>产品名称：</TD>
          <TD class=altbg2 align=right><html:text property="name" size="15"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>产品型号：</TD>
          <TD class=altbg2 align=right><html:text property="model" size="30"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>分类：</TD>
          <TD class=altbg2 align=right>
          <select name="sid">
          <%for(int i =0;i<sorts.length;i++){ %>
          <option value="<%=sorts[i].getSid() %>"><%=sorts[i].getName() %></option>
          <%} %>
          
          </TD></TR>
        <TR>
          <TD class=altbg1>库存数量：</TD>
          <TD class=altbg2 align=right><html:text property="num" size="10" value="300"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>单价：</TD>
          <TD class=altbg2 align=right><html:text property="price" size="10"> 元</html:text></TD></TR>
                                                          
      </TBODY></TABLE><BR>
      <CENTER><INPUT class=button type=submit value="提交"></CENTER>	</html:form></TD></TR></TBODY></TABLE>

<%@include file= "./footer.jsp"%>
